/* 验证手机号 */
var phone=document.getElementById("phone");
var error=document.getElementsByClassName("error");
phone.onchange=checkphone;
function checkphone(){
    if(phone.value.length == 11){
        error[0].style.display="none";
        return 1;
    }
    else{
        error[0].style.display="block";
        return 0;
    }
}
function checkform(){
    if(checkphone() == 0){
        return false;
    }
    else{
        return true;
    }
}